package com.springtest.aspectj.xml;

import com.springtest.jdk.UserDao;
        import org.springframework.context.ApplicationContext;
        import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestXmlAspectj {
    public static void main(String[] args) {
        ApplicationContext applicationContext =new ClassPathXmlApplicationContext("aspectj.xml.xml");
        UserDao userDao =(UserDao)applicationContext.getBean("userDao");
        userDao.addUser();
    }
}
